<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head id="MyHead">
	<title>修改用户</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script src="../resources/Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="../resources/Scripts/JScriptCommon.js" type="text/javascript"></script>
    <link href="../resources/Content/StyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="../resources/Content/IndexStyle.css" rel="stylesheet" type="text/css" />
    <script src="../resources/Res/easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../resources/Res/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <link href="../resources/Res/easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../resources/Res/easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />

    
    <script type="text/javascript">
    
    
    var userDepts = [];
    var userPositions = [];
	//异步刷新下拉列表
    /* $.ajax({ 
    	type: "POST", 
    	async: false, 
    	cache: false, 
    	url: "showDepts",
    	success: function (res) {
	        if (res != "") {
	        	userDepts = res;
	        }
    	} 
    }); */
	//异步刷新下拉列表
     /* $.ajax({ 
     	type: "POST", 
     	async: false, 
     	cache: false, 
     	url: "showPositions",
     	success: function (res) {
          if (res != "") {
        	  userPositions = res;
          }
     	} 
     }); */
        
    /*  $(function () {

	      $("#FK_SP_ID").combobox({ data: userDepts, editable: false,panelHeight:"auto", valueField: 'Id', textField: 'Text' });
	      $("#FK_DIC_CASHTYPE").combobox({ data: userPositions, editable: false,panelHeight:"auto", valueField: 'text', textField: 'text' });
	
	      $("#submit").click(function () {
             if ($("#FK_SP_ID").combobox("getValue") == "") {
                 $.messager.alert('系统提示：', '请选择费用名称！', 'warning');
                 return false;
             }

             if ($("#FK_DIC_CASHTYPE").combobox("getValue") == "") {
                 $.messager.alert('系统提示：', '请选择结帐方式！', 'warning');
                 return false;
             }
	      });
     }); */
              
    </script>
    
	<!-- ajaxForm函数，给页面中的表单做一些ajax提交的准备 -->
    <!-- <script type='text/javascript'>
        function ajaxFrom(form, url) {
            progressComm();
            $.ajax({
                url: url,
                type: "Post",
                data: $(form).serialize(),
                dataType: "json",
                success: function (data) {
                    $.messager.progress('close');
                    if ($.messager) {
                        $.messager.defaults.cancel = '返回';
                        $.messager.defaults.ok = '继续';

                        $.messager.confirm('操作提示', data, function (r) {
                            if (!r) {
                                window.location.href = 'javascript:history.go(-1)';
                                //alert("aaaaaaaa");
                            }
                        });
                    }
                }
            });

        }
		//点击穿件按钮，提交表单
        $(function () {
            $("form").submit(function (form) {
                if (form.result) {
                    ajaxFrom(this, this.action);
                }
                return false;
            });
        });
    </script> -->
    
    
</head>
<body>
    
<div class="mbx">
      修改  系统用户
</div>
<form action="/modifyUser" method="post">
	<!-- <script language="javascript">
	    function selectInput(choose) {
	        var SCL_RealObj = document.getElementById("SCL_Real");
	        var SCL_typeObj = document.getElementById("SCL_type");
	        var SCL_typeTxt = document.getElementById("SCL_typeTxt");
	        var SCL_typeTxtVal = choose.options[choose.selectedIndex].lang;
	        //if (choose.options[choose.selectedIndex].title < 0) {
	           // SCL_RealObj.value = (-choose.options[choose.selectedIndex].title);
	       // }
	       // else {
	            //SCL_RealObj.value = choose.options[choose.selectedIndex].title;
	      //  }
	        if (SCL_typeTxtVal == undefined) {
	            SCL_typeTxt.innerHTML = "";
	        } else {
	            if (SCL_typeTxtVal == "支") {
	                SCL_typeTxt.innerHTML = "<font style=\"color:#FF0000\">" + SCL_typeTxtVal + "</font>";
	            } else {
	                SCL_typeTxt.innerHTML = SCL_typeTxtVal;
	            }
	
	        }
	        SCL_typeObj.value = SCL_typeTxtVal;
	    } 
	</script> -->
    <fieldset>
        <legend>
            <input class="submitcss" type="submit" id="submit" value="修改" />
            <input class="submitcss" type="button" onclick="BackList('../system_manage/SysPerson.jsp')" value="返回" />
        </legend>
        <div class="bigdiv">
                 
            <div class="editor-label">
               	<label for="userId">用户账号</label>
        	</div>
	        <div class="editor-field">
	            <input readonly="readonly" id="userId" name="userId" type="text" value="${user.userId}" />
	        </div>     
            
            <div class="editor-label">
               	<label for="userName">用户名称</label>
        	</div>
	        <div class="editor-field">
	            <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="userName" name="userName" type="text" value="${user.userName }" />
	        </div>
	        
	        <div class="editor-label">
	            <label for="userSex">用户性别</label>
	        </div>
	        <div class="editor-field">
	            <select class="easyui-combobox" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="userSex" name="userSex" style="width:210px;">
		        	<option <c:if test="${user.userSex eq '男'}">selected</c:if> value="男">男</option>
		        	<option <c:if test="${user.userSex eq '女'}">selected</c:if> value="女">女</option>
				</select>
	        	<!-- <input type="hidden" value="" name="userSex" id="userSex" /> -->
	        </div>
            
       		<div class="editor-label">
	            <label for="userDept">所在部门</label>
	        </div>
	        <div class="editor-field">
	            <select class="easyui-combobox" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="userDept" name="userDept" style="width:210px;">
		        	<option value="">请选择</option>
		        	<option <c:if test="${user.userDept eq '人事部' }">selected</c:if> value="人事部">人事部</option>
		        	<option <c:if test="${user.userDept eq '财务部' }">selected</c:if> value="财务部">财务部</option>
		        	<option <c:if test="${user.userDept eq '业务部' }">selected</c:if> value="业务部">业务部</option>
				</select>
	        	<!-- <input type="hidden" value="" name="userDept" id="userDept" /> -->
	        </div>

            <div class="editor-label">
	            <label for="userPosition">用户职位</label>
	        </div>
	        <div class="editor-field">
	            <select class="easyui-combobox" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="userPosition" name="userPosition" style="width:210px;">
		        	<option value="">请选择</option>
		        	<option <c:if test="${user.userPosition eq '驾校领导' }">selected</c:if> value="驾校领导">驾校领导</option>
		        	<option <c:if test="${user.userPosition eq '教练' }">selected</c:if> value="教练">教练</option>
		        	<option <c:if test="${user.userPosition eq '财务' }">selected</c:if> value="财务">财务</option>
		        	<option <c:if test="${user.userPosition eq '普通员工' }">selected</c:if> value="普通员工">普通员工</option>
				</select>
	        	<!-- <input type="hidden" value="" name="userPosition" id="userPosition" /> -->
	        </div>

	        <div class="editor-label">
	              <label for="userPhone">用户电话</label>
	        </div>
	        <div class="editor-field">
	            <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="userPhone" name="userPhone" type="text" value="${user.userPhone }" />
	        </div>
            

            <div class="editor-label">
               	<label for="userEmail">电子邮箱</label>
        	</div>
	        <div class="editor-field">
	            <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="userEmail" name="userEmail" type="text" value="${user.userEmail }" />
	        </div>
            
            <!-- <div class="editor-label">
                <label for="campus">分校/总校</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-number="字段 实收/实付 必须是一个数字。" data-val-required="不能为空" id="campus" name="campus" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="SCL_Real" data-valmsg-replace="true"></span>
            </div>  -->
            
            <div class="editor-label">
               	<label for="userEmail">分校/总校</label>
        	</div>
	        <div class="editor-field">
	            <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="campus" name="campus" type="text" value="${user.campus }" />
	        </div> 
            
	        <div class="editor-label">
	            <label for="userStatus">用户状态</label>
	        </div>
	        <div class="editor-field">
	            <select class="easyui-combobox" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="userStatus" name="userStatus" style="width:210px;">
	            	<option value="">请选择</option>
		        	<option <c:if test="${user.userStatus eq '开启' }">selected</c:if> value="开启">开启</option>
		        	<option <c:if test="${user.userStatus eq '禁用' }">selected</c:if> value="禁用">禁用</option>
				</select>
	        	<!-- <input type="hidden" value="" name="userStatus" id="userStatus" /> -->
	        </div>
        </div>
        <div>${message}</div>
    </fieldset>

    </form>
    <c:remove var="message"/>
</body>
</html>